package org.jeecg.modules.outOrder.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.outOrder.entity.OutOrder;
import org.jeecg.modules.outOrder.entity.OutOrderDetail;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 出库单
 * @Author: jeecg-boot
 * @Date: 2023-12-04
 * @Version: V1.0
 */
public interface IOutOrderService extends IService<OutOrder> {

    void saveWarehousingOut(OutOrder outOrder, List<OutOrderDetail> outOrderDetailList);

    void releaseWarehousingOut(String id);

    /**
     * 删除一对多
     */
    public void delMain(String id);

    /**
     * 批量删除一对多
     */
    public void delBatchMain(Collection<? extends Serializable> idList);

    /**
     * 添加一对多
     */
    public void saveMain(OutOrder outOrder, List<OutOrderDetail> outOrderDetailList);

    /**
     * 修改一对多
     */
    public void updateMain(OutOrder outOrder, List<OutOrderDetail> outOrderDetailList);

}
